package com.example.diffservice.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;

/**
 * @author DestinyCc
 * @date 2022/4/18
 */
@Data
@AllArgsConstructor
public class DiffResult {
    List<SingleFileDifference> differences;

    List<Link> links;

    public DiffResult(){
        this.differences = new ArrayList<>();
        this.links = new ArrayList<>();
    }

    public void addSingleFileDifference(SingleFileDifference singleFileDifference){
        this.differences.add(singleFileDifference);
    }

    public void addLink(Link link){
        this.links.add(link);
    }
}
